package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "user")
public class User extends BaseModel {	//用户

	private String name;     //用户


	private String username;     //用户

	private Integer telephone;     //手机

	private String password;     //密码

	private String wechatName;     //微信登录名

	private String wechatOpenId;     //微信id

	private String IP;     //登录Ip

	private String loginTime;     //登录时间


	@ManyToOne
	private Business business;     //所在企业

	private String certificateType;     //证件类型

	private String certificateNumber;     //证件编号

	private String email;     //邮箱

	private Integer sex;     //性别

	private Integer audit;     //审核状态

}

